import request from '@/utils/request'

// 获取支付账户信息
export function getAccountInfo() {
  return request({
    url: '/apartment/payment/account/info',
    method: 'get'
  })
}

// 保存支付账户信息（提交审核）
export function saveAccount(data) {
  return request({
    url: '/apartment/payment/account',
    method: 'post',
    data: data
  })
}

// 暂存支付账户信息
export function saveDraftAccount(data) {
  return request({
    url: '/apartment/payment/account/draft',
    method: 'post',
    data: data
  })
}

export default {
  getAccountInfo,
  saveAccount,
  saveDraftAccount
} 